Replace the error message when invalid xm commands are given.
authorEwan Mellor <ewan@xensource.com>
Fri, 15 Dec 2006 09:08:41 +0000 (09:08 +0000)
committerEwan Mellor <ewan@xensource.com>
Fri, 15 Dec 2006 09:08:41 +0000 (09:08 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/main.py

index 7ed90317394168450e3a8a799160566241150f3d..c3059f6f3caf94f4dced3e19b79e5dc2390fdd0c 100644 (file)
@@ -1737,6 +1737,7 @@ def main(argv=sys.argv):
         _, rc = _run_cmd(cmd, cmd_name, args)
         sys.exit(rc)
     else:
+        err('Subcommand %s not found!' % cmd_name)
         usage()
 
 def _run_cmd(cmd, cmd_name, args):